
package com.cn.xiaonuo.slbfinances.slborders.controller;


import com.cn.xiaonuo.common.entity.BusinessMessage;
import com.cn.xiaonuo.slbfinances.slborders.param.SlWithdrawalDetailedParam;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import com.cn.xiaonuo.slbfinances.slborders.service.SlWithdrawalDetailedService;

import io.swagger.annotations.ApiOperation;

import javax.servlet.http.HttpServletResponse;

/**   
 * 
 * @Description:  商家提现明细每日汇总表接口层
 * @Author:       luyangyang   
 * @CreateDate:   SlWithdrawalDetailed
 * @Version:      V1.0
 *    
 */
@RestController
public class SlWithdrawalDetailedController {

	Logger logger = LoggerFactory.getLogger(this.getClass());
	
	@Autowired
	public SlWithdrawalDetailedService slWithdrawalDetailedService;

	@ApiOperation(value = "搜了宝订单管理--商家提现明细", notes = "搜了宝订单管理--商家提现明细")
	@PostMapping(value = "/api/shop/withdrawalDetailed")
	public BusinessMessage withdrawalDetailed(@RequestBody SlWithdrawalDetailedParam param) {
		return slWithdrawalDetailedService.withdrawalDetailed(param);
	}

	@ApiOperation(value = "搜了宝订单管理--商家提现明细定时", notes = "搜了宝订单管理--商家提现明细定时")
	@PostMapping(value = "/api/common/shop/withdrawalDetailedTask")
	public BusinessMessage withdrawalDetailedTask() {
		return slWithdrawalDetailedService.withdrawalDetailedTask();
	}

	@ApiOperation(value = "搜了宝订单管理--商家提现明细导出", notes = "搜了宝订单管理--商家提现明细导出")
	@GetMapping(value ="/api/shop/withdrawalExcel")
	public void excelWithdrawal(HttpServletResponse response,SlWithdrawalDetailedParam param) {
		 slWithdrawalDetailedService.excelWithdrawal(response,param);
	}
}